package com.qy.service.impl;

import com.qy.dao.LabelMapper;
import com.qy.model.Label;
import com.qy.service.LabelService;
import com.qy.base.core.AbstractService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;


/**
 * Created by zaq on 2018/07/10.
 */
@Service
@Transactional
public class LabelServiceImpl extends AbstractService<Label> implements LabelService {
    @Resource
    private LabelMapper qyLabelMapper;

    @Override
    public List<Label> selectChildLabel(Label label) {
        return qyLabelMapper.selectChildLabel(label);
    }

    @Override
    public List<Label> selectFatherLabel() {
        return qyLabelMapper.selectFatherLabel();
    }
}
